package edu_xy.hm_02;

import edu_xy.hm_02.slice.*;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        //设置主页面
        super.setMainRoute(MainAbilitySlice.class.getName());
        //把页面添加到主模块里面
        this.addActionRoute("mainabilityslice01", MainAbilitySlice01.class.getName());
        this.addActionRoute("mainabilityslice02", MainAbilitySlice02.class.getName());
        this.addActionRoute("mainabilityslice03", MainAbilitySlice03.class.getName());
        this.addActionRoute("mainabilityslice04", MainAbilitySlice04.class.getName());

    }
}
